package com.example.koizzi.ad20180606_note;

import android.text.format.Time;

import java.text.SimpleDateFormat;
import java.util.Date;

public class StudentTable {
    public static final String TABLE_NAME = "student";
    public static final String COLUMN_ID = "id";
    public static final String COLUMN_NAME = "name";
    public static final String COLUMN_AGE = "age";
    public static int counts = 0;
    public static final int countss(){
        Time t=new Time(); // or Time t=new Time("GMT+8"); 加上Time Zone资料。
        t.setToNow(); // 取得系统时间。
        int year = t.year;
        int month = t.month+1;
        int day = t.monthDay;
        int hour = t.hour; // 0-23
        int minute = t.minute;
        int second = t.second;
        String ss = String.valueOf(month)+String.valueOf(day)+String.valueOf(hour)+String.valueOf(minute)+String.valueOf(second);
        counts = Integer.parseInt(ss);
        return counts;
    };
    public static final  int times() {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMdd");// HH:mm:ss
        Date date = new Date(System.currentTimeMillis());
        int sss = Integer.valueOf(simpleDateFormat.format(date));
        return sss;
    }


}
